#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "mytcpserver.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_close_clicked();

    void on_pushButton_start_clicked();

    void on_pushButton_selectfile_clicked();

    void on_pushButton_sendMsg_clicked();
signals:
    void start(QString name); //通知子线程可以工作啦

private:
    Ui::MainWindow *ui;
    MyTcpSever* m_server;
};
#endif // MAINWINDOW_H
